<include file="Public/header" />
 <div class="wrapper wrapper-content">
        <div class="row">
          <div class="ibox-title">
                <h5>权限组处理</h5>
                <div class="ibox-tools">
                    <a class="collapse-link" href="{:U('rbac/groupedit')}" >
                        <i class="fa fa-chevron-up"></i>
                        添加权限组
                    </a>
                    
                </div>
            </div>
            <div class="col-sm-9 animated fadeInRight">
                 <div class="ibox-content">

                        <table class="table table-striped table-bordered table-hover dataTables-example">
                            <thead>
                                <tr>
                                    <th>#</th>
                                    <th>组名称</th>
                                    <th>是否启用权限</th>
                                    <th>菜单源</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                    
                                
                                </tr>
                            </thead>
                            <tbody>
                           	<foreach name="group" item="vo">
								<tr>
									<td>{$vo.id}</td>
							        <td>{$vo.name}</td>
                                    <td>{$vo.groupname}</td>
                                    <td>C('{$vo.menu}')</td>
                                    <td>
                                    <i class="fa <?php if($vo['status']==1){ echo "fa-check-square";}else{ echo "fa-minus-square";} ?>"></i>
                                    </td>

                                    <td>
                                        <a href="/admin/rbac/index/groupid/{$vo.id}" class="btn btn-outline btn-xs btn-primary ">权限列表</a>
                                        <a type="button"  class="btn btn-outline btn-xs btn-primary " href="/admin/rbac/member/groupid/{$vo.id}">管理员列表</a>
                                        <?php if($vo['id']==1||$vo['id']==2){ ?>
                                         <a type="button" class="btn btn-outline btn-xs btn-default " >删除</a>
                                         <?php }else{ ?>
                                          <a type="button" to="0" from="status" table="role_group" where="id-{$vo.id}" class="btn btn-outline btn-xs btn-danger cmzdel" >删除</a>
                                         <?php  }?>
                                          <a href="<?php if($vo['id']==1){ ?>javascript:;<?php }else{ ?>/admin/rbac/groupedit/id/{$vo.id}<?php } ?>"  class="btn btn-outline btn-xs btn-<?php if($vo['id']==1){ ?>default<?php }else{ ?>primary<?php } ?>">修改</a>

                                       
                                    </td>
								</td>
								</tr>
							</foreach>
                            </tbody>
                        
                        </table>

                    </div>
             
            </div>
        </div>
    </div>

<include file="Public/footer" />